package com.gopay.remote.cps.cbrmb;

import com.gopay.common.exception.GopayException;

/**
 * masapay query reuslt finish order
 * 
 * @ClassName: CbrmbMasaPayCallbackRemoteService
 * @Description: TODO
 * @author gd.cui
 * @date 2017年11月7日 上午10:53:10
 */
public interface CbrmbMasaPayCallbackRemoteService {
	/**
	 * 做账
	 * 
	 * @Description:
	 * @param order
	 * @return
	 * @throws GopayException
	 * @author gd.cui
	 */
	String masaPayReturnFinishOrder(String gopayOrderId) throws GopayException;

	/**
	 * 更新订单状态
	 * 
	 * @Description:
	 * @param order
	 * @throws GopayException
	 * @author gd.cui
	 */
	void masaPayReturnUpdateOrder(String gopayOrderId) throws GopayException;

	/**
	 * 通知
	 * 
	 * @Description:
	 * @param gopayOrderId
	 * @author gd.cui
	 */
	public void notifyMer(String gopayOrderId);

	/**
	 * 冻结保证金
	 * 
	 * @Description:
	 * @param gopayOrderId
	 * @author gd.cui
	 */
	public void frezDepositAmt(String gopayOrderId);

	/**
	 * 更新主订单状态 30000-30402  30000-20001
	 * 
	 * @Description:  
	 * @param gopayOrderId
	 * @param txnStaCd 
	 * @author gd.cui
	 */
	public void updateMainOrderTxnStaCd(String gopayOrderId, int txnStaCd);

}
